namespace KPIS.GERP.Models.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class update0152 : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.sys_menu_items_list", "icon", c => c.String());
            DropTable("dbo.SysMenuItemList");
        }
        
        public override void Down()
        {
            CreateTable(
                "dbo.SysMenuItemList",
                c => new
                    {
                        MenuItemId = c.Int(nullable: false, identity: true),
                        MenuItemCode = c.String(),
                        MenuItemName = c.String(),
                        UpperMenuItemId = c.String(),
                        MenuItemPath = c.String(),
                        MenuItemTarget = c.String(),
                        SystemId = c.String(),
                        RecordStatus = c.String(),
                        CreatedBy = c.Int(),
                        CreatedWhen = c.DateTime(),
                        UpdatedBy = c.Int(),
                        UpdatedWhen = c.DateTime(),
                    })
                .PrimaryKey(t => t.MenuItemId);
            
            DropColumn("dbo.sys_menu_items_list", "icon");
        }
    }
}
